#pragma once

#include "CH58x_common.h"
#include "esay_log.h"

typedef FunctionalState en_state_t;
typedef enum
{
    OFFLINE = 0,
    ONLINE = 1,
} dev_state_t;

typedef enum
{
    OFF = 0,
    ON,
}function_state_t;

#define TIMER0_COMPILE_EN 1
#define TIMER1_COMPILE_EN 0
#define TIMER2_COMPILE_EN 0
#define TIMER3_COMPILE_EN 0

#define UART0_COMPILE_EN 0
#define UART1_COMPILE_EN 1
#define UART2_COMPILE_EN 0
#define UART3_COMPILE_EN 1

#define GPIO_USE_LOG esay_logi // esay_lognop关闭日志 其它为开启对应等级日志
